package com.wtwd.campus.entity;


import java.util.Date;

/**
 * @author zdl
 * @date 2022/5/26 19:20
 */
public class LocationInfo {


    private Double lat;

    private Double lng;

    private String address;

    /**
     * 定位精度
     */
    private String accuracy;

    /**
     * 速度
     */
    private Integer speed;

    /**
     * 角度
     */
    private String angle;

    /**
     * 总里程
     */
    private Integer mile;


    /**
     * 定位时间
     */
    private Date locationTime;

    /**
     * 定位类型
     */
    private String locationType;

    /**
     * 数据状态
     */
    private String dataState;

    /**
     * 匹配mac数量
     */
    private int matchedMacNum;


    public enum LocationTypeEnum {
        GPS("1"), LBS("2"), WIFI("3");
        private String code;

        LocationTypeEnum(String code) {
            this.code = code;
        }

        public String getCode() {
            return code;
        }
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(String accuracy) {
        this.accuracy = accuracy;
    }

    public Integer getSpeed() {
        return speed;
    }

    public void setSpeed(Integer speed) {
        this.speed = speed;
    }

    public String getAngle() {
        return angle;
    }

    public void setAngle(String angle) {
        this.angle = angle;
    }

    public Integer getMile() {
        return mile;
    }

    public void setMile(Integer mile) {
        this.mile = mile;
    }

    public Date getLocationTime() {
        return locationTime;
    }

    public void setLocationTime(Date locationTime) {
        this.locationTime = locationTime;
    }

    public String getLocationType() {
        return locationType;
    }

    public void setLocationType(String locationType) {
        this.locationType = locationType;
    }

    public String getDataState() {
        return dataState;
    }

    public void setDataState(String dataState) {
        this.dataState = dataState;
    }

    public int getMatchedMacNum() {
        return matchedMacNum;
    }

    public void setMatchedMacNum(int matchedMacNum) {
        this.matchedMacNum = matchedMacNum;
    }

    @Override
    public String toString() {
        return "LocationInfo{" +
                "lat=" + lat +
                ", lng=" + lng +
                ", address='" + address + '\'' +
                ", accuracy='" + accuracy + '\'' +
                ", speed=" + speed +
                ", angle='" + angle + '\'' +
                ", mile=" + mile +
                ", locationTime=" + locationTime +
                ", locationType='" + locationType + '\'' +
                ", dataState='" + dataState + '\'' +
                ", matchedMacNum=" + matchedMacNum +
                '}';
    }
}
